package pkg

import (
	"github.com/go-redsync/redsync/v4"
	"github.com/go-redsync/redsync/v4/redis/goredis/v9"
	"github.com/redis/go-redis/v9"
)

func RedsyncInit(redisClient *redis.Client) (*redsync.Redsync, error) {
	return redsync.New(goredis.NewPool(redisClient)), nil
}
